//
//  TKYAllQualityController.m
//  StationHouseHelper
//
//  Created by apple on 2018/7/9.
//  Copyright © 2018年 铁科院. All rights reserved.
//

#import "TKYAllQualityController.h"
#import "TKYSafetyCell.h"
#import "TKYQuelityDetileController.h"
@interface TKYAllQualityController ()<UITableViewDataSource, UITableViewDelegate>


@end

@implementation TKYAllQualityController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.tabelV];
    // Do any additional setup after loading the view.
}

#pragma mark -- UITableViewDataSource, UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 50;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return  kHeightScale *110;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    TKYSafetyCell *cell = [tableView dequeueReusableCellWithIdentifier:KSafetyCellID];
    
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    TKYQuelityDetileController *quelityDetitleVC = [[TKYQuelityDetileController alloc]init];
    
    [self.navigationController pushViewController:quelityDetitleVC animated:YES];
}

- (BaseTabelView *)tabelV{
    if (_tabelV == nil) {
        _tabelV = [[BaseTabelView alloc]initWithFrame:CGRectMake(0, kHeightScale *35, kScreenWidth,kScreenHeight -MyNavBarHeight -kHeightScale *35 - kHeightScale *200   ) style:UITableViewStylePlain];
        _tabelV.dataSource = self;
        _tabelV.delegate = self;
        [_tabelV registerClass:[TKYSafetyCell class] forCellReuseIdentifier:KSafetyCellID];
        _tabelV.mj_header = [TKYRefreshHeader headerWithRefreshingBlock:^{
            
            
        }];
        
        _tabelV.mj_footer = [TKYRefreshFooter footerWithRefreshingBlock:^{
            
        }];
        
    }
    return _tabelV;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
